//
//  NSString+YUCheck.h
//
//  Created by BruceYu on 15/9/7.
//  Copyright (c) 2015年 BruceYu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (check)
/* 验证手机号码长度 */
-(BOOL)checkPhoneLength;
/* 验证手机号码合不合规 */
-(BOOL)isPhoneNo;
-(BOOL)isPhoneNumber;
/* 验证邮箱合不合规 */
-(BOOL)isValidEmail;
/* 验证密码和不合理 */
-(BOOL)isPwd;
/* 验证密码和不合理 */
-(BOOL)isPassWord;
/* 小数 */
-(BOOL)isDecimal;
 /* 去除空格和换行 */
- (BOOL)isWhitespaceAndNewlines;
/* 验证邮箱是否有空格 */
- (BOOL)isEmptyOrWhitespace;
/* 验证URL是不是合规 */
- (BOOL)isURLString;
/* 是不是包含子字符串 */
- (BOOL)isHasString:(NSString*)substring;
/* 非法字符 */
-(BOOL)isIncludeSpecialCharact;
/* 是否空字符串 */
- (BOOL)isEmptyString;
/* 是否是有效身份证 */
- (BOOL)validateIdentityCard;
/* 是空字符串则返回@"" */
-(NSString *)isEmpty;
@end
